<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body{
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            background:#1a252c;
        }
        .container{
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
            transform-style: preserve-3d;
        }
        .container .box{
            width: 300px;
            height: 400px;
            position: relative;
            transition: .5s;
            -webkit-box-reflect: below 1px linear-gradient(transparent,#0002);
            /* 图片倒影 */
        }
        .container .box img{
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }
        .container:hover>:not(:hover){ 
            /* 不被鼠标选中设置属性 */
            margin:  0 -20px;
            filter: drop-shadow(0 0 25px #000)
                    drop-shadow(0 0 45px #000);
            transform: perspective(500px) rotateY(45deg) scale(0.95);
            /* 深景 旋转y轴 大小 */
        }
        .container .box:hover~.box{
            /* 控制被鼠标选中后方的同级元素 用兄弟选择器解决 */
            transform: perspective(500px) rotateY(-45deg) scale(0.95);
        }
        .container .box:hover{
            transform: perspective(500px) rotateY(0deg) scale(1.5);
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="box">
            <img src="./picture/微信图片_20240526141558.jpg" alt="">
        </div>
        <div class="box">
            <img src="./picture/微信图片_20240526141604.jpg" alt="">
        </div>
        <div class="box">
            <img src="./picture/微信图片_20240526141620.jpg" alt="">
        </div>
        <div class="box">
            <img src="./picture/微信图片_20240526141735.jpg" alt="">
        </div>
        <div class="box">
            <img src="./picture/微信图片_20240526141738.jpg" alt="">
        </div>
    </div>
</body>
</html>